package cn.com.elite;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class test {
	public static void main(String[] args){
		String fileName="E:\\apache-tomcat-5.5.20\\apache-tomcat-5.5.20\\webapps\\EliteDBLink\\WEB-INF\\classes\\cn\\com\\elite\\elitedb.properties";
		InputStream in=null;  
        Properties pros=new Properties();  
		try {
			in=new BufferedInputStream(new FileInputStream(fileName));
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		try {
			pros.load(in);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		if(pros!=null){
			System.out.println(Integer.parseInt(pros.getProperty("HZ")));
		}else{
			System.out.println("aaaaaaaaaaaaaaaa");
		}
	}

}
